// 函数的重载
#include <iostream>

using namespace std;

class PrintData
{
public:
  void print(int i)
  {
    cout << "整数为: " << i << endl;
  }

  void print(double f)
  {
    cout << "浮点数为: " << f << endl;
  }

  void print(char c[])
  {
    cout << "字符串为: " << c << endl;
  }
};

int main(int argc, char const *argv[])
{

  PrintData p;
  p.print(10);
  p.print(10.2);
  // NOTE: 输出字符串
  char c[] = "Hello C++";
  p.print(c);
  return 0;
}
